package week6;
class Student{
    String name;
    int age;
    String school;
    String major;
    public Student(String name,int age){
        this.name=name;
        this.age=age;
    }
    public Student(String name,int age,String school){
        this.name=name;
        this.age=age;
        this.school=school;
    }
    public Student(String name,int age,String school,String major){
        this.name=name;
        this.age=age;
        this.school=school;
        this.major=major;
    }
}
public class TsetStudent {
    public static void main(String[] args){
        Student s1=new Student("哈基米",18);
        System.out.println("姓名："+s1.name+"，年龄："+s1.age);
        Student s2=new Student("曼波",19,"南北路多大学");
        System.out.println("姓名："+s2.name+"，年龄："+s2.age+"，学校;"+s2.school);
        Student s3=new Student("阿西嘎",18,"哈压库大学","计算机");
        System.out.println("姓名："+s3.name+"，年龄："+s3.age+"，学校;"+s3.school+"，专业："+s3.major);
    }
}
